package com.love.marriage.userCommissionBalance.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.love.marriage.common.vo.BaseVo;
import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import com.love.marriage.config.Long2StringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.love.marriage.config.Long2StringSerializer;

/**
 * description:  用户回佣余额表Vo
 * author:       mybatisPlus
 * createDate:   2024-11-10 18:51:27
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "UserCommissionBalanceVo", description = "用户回佣余额表Vo")
public class UserCommissionBalanceVo extends BaseVo<UserCommissionBalanceVo>{

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "用户ID，关联用户表", type = "Long", implementation = Long.class)
    private Long userId;

    @Schema(description = "当前回佣余额", type = "BigDecimal", implementation = BigDecimal.class)
    private BigDecimal currentBalance;

    @Schema(description = "版本号，用于乐观锁", type = "Integer", implementation = Integer.class)
    private Integer version;

}
